fixing permission test cases