use fixtures (why not use google testing framework?) so tests will not affect each other
add primitive deadlock test to research possible (in future?) issues
move path resolving code into separate files