Fixed test for optimize imports.