Testing some functions for permissions.