added tests, travis-ci