Add unit tests and travis support.