added a test for check permissions for the public/admin pages