moving patching of mtime to helper method to enforce DRY in tests