Fix snapshot test windows

Fixed test to be windows-aware.