Make tests independent of CWD

Tests currently rely on the CWD being the project root
Fix Travis build problems
Merge pull request #30 from cottsay/test-fixes

Test fixes