test for raising exception on early date