Added unit tests and Travis