Replace fragile tests with timecop