Added permission test case and few modifications in the existing testcases