Adding unit tests and travis yaml file