Fix test failing due to datetime.now()