Refers #214 -- Add permission check tests