added unit tests for date