Test wire_wait