Fixed test errors.