Add distance to path and fix tests.
Remember to close DB connections.... fuck.
Change package paths.