rearrange tests and Travis-ci integration because TestFinish fails on python 2.6 (assertRaises is not a context manager)