Using sinon to mock Date for unit test
Added test for updateTime using sinon clock tick