Fix test failing due to the change of the deadline variable type