test to check permissions