Added test for creating and deleting permissions