Fixing test crash.