fix permission test case