Make it possible to run tests

This commit adds basic tools for being able to run the test suite and some PEP8 fixes to make all tests pass.