added tests and travis badge