fixed tests and added travis CI