added tests and travis config