Added testcase for testCheckPermissions()

Signed-off-by: A V Minhaz <minhazav@gmail.com>