Completed unit tests for date sanitization