Tests: make tests more robust

Closes #81.
File dates could be rounded to second or higher

Closes #82.