fix issue with time comparison in test