Fix tests so that they work in venv.
Add .sh script that mimics Travis unittest behavior.

This is useful for people running the tests themselves.
Add image target for build status.