You can unpublish the test without from a learner portal, without removing user permissions.
When you deactivate a test:
Steps to deactivate the test:
To re-activate the test click visibility Activate.
You can deactivate and activate a test as often as you want.