First iteration of unit tests.
Add travis support correctly (after all this time).