Tests fixes

Refs #6. This is only the stuff that I saw right away, so don't merge it yet.
Switched to absolute imports, because it will give us less ambiguity and problems in the future and corresponds to <a href="https://docs.python.org/2.5/whatsnew/pep-328.html">PEP 328</a>.