Fix unit tests

This patchset fixes the unit test build and also adds a few tests for the jump command.

I think we should really try to keep those tests working, because having a reliable build on Linux will allow us to use advanced quality tools such as static analyzers, etc. I can play QA guy and add those tests after each pull request, but it would be easier for everyone if those who write the code also write the tests during development.