Move imports to top level in test module.