Add tests for is_in_notification_window
Add freeze_time fixture for tests

Freezes the time returned by datetime.now etc. and also by sqlalchemy's
func.now()
Add tests for is_in_digest_window