added tests and travis file