Fixed test case errors.