Make command line unit tests work locally

This hopefully means they will work in Travis as well.