make sure test does not get stuck forever