moved tests and shortest path finding into separate modules