ENH get rid of most imports in test_common