module: fixes falling back of file modules; #123
adds test cases for file-module; #123