fixed the json_date factory so that end dates aren't before begin dates
fixed tests broken by end before begin validation