added unit test in time/tests/test_time.py