added travis file and fixed error in unit test