added tests and travis yml config