Adding unit tests and Travis integration