file.lastModified is different on OS

It seems that the file.lastmodified() is different depending on the OS.
Some OS'es return the exact milliseconds while some doesnt. This fixes
the test so they work both on both type of OSes