Better wait condition -> no test hangs