rest: Make bootime test more robust

Randomly had of by one errors