added tests for date parsing