fixed error
added randomized tests for the dates