Implement spec test for permissions