normalized paths to make tests work cross platform

Here is the test changes for making tests run cross platform. Used path.normalize instead of path.join as it reads better. Tested on windows with node 0.8.15. 10 of 16 assertions failed before, now all pass.