Adds test for date object