file module: add mode resets to tests
file module: add failing test for '[ugo]-X' case
file module: refactor (ifs & loop) into (lookup map & reduce function)
file module: add test for 'u=u' type modes