fix tests under windows with path.normalize

path.join returns double backslashes under Windows, so path.normalize makes the paths in the tests portable.