Add tests for date module