Don't crash when encountering a duplicate time

Including fabulously copied tests