test class for checking permissions