Added unit tests for updating the date fields