Tests: fix imports in common api tests