Convert tests to unittest.TestCase
Add Travis