Add new tests for file mode check
Made api of check filesystem permissions the same as other check_-methods
Use new api in cucumber step