add timeout to 'wait' test utility method

I think this is what is causing the drone.io hangs, testing my theory -
this should throw an error if that is the case