Test should not rely on setTimeout