this test logic should be replaced to actually check if date was updated to proper value, and not just if `midnight` has the correct value. - this will be easier to check after you use `sinon.useFakeTimers`