Add test for invalid time.