Add tests for creating permissions from a string