Added access control for /test.
Fixed permissions for viewing all tests.
Fixed permissions for viewing single test.