tests for permission repository