Fixing test which doesn't terminate.