modified tests so they work cross platform on windows

Need the tests to run on windows so changed the tests not to assume unix style paths but to be portable instead.
would anything break if we just add unixify to resourceFile below and then we don't have to think about which one of these to use?