test(gen): use path.normalize to be winodows aware

- change function assertOnlyFiles to use a different local variable from
global module name - path.
- show expected files when a test fails
- use path.normalize before search in the array

Closes #601