Add test for invalid time element