fix tests on python 3
use absolute imports in tests so they can be run standalone