unit tests in progress. Added date check