Added test to catch null values in dates