Fixes test errors.