Using MockOS to make the filename tests not fail

Has the tests use the MockOS and stop failing the generate_filename tests on Windows