Add tests, travis-ci integration