This time-based testing is peculiar and unstable - the implementation should instead expose an event which notifies the user specifically of exactly which files are created so they can be cleaned up - or else simply take care of this itself. This current cleanup system would fail if the system is heavily loaded during testing, or else if there is a change in system time.