Fix broken imports in tests.
Add missing dependency in setup file.