add test for invalid time exception in Parser

-add a test for invalid time exception in Parser