added tests for permsw