added tests; travis-ci support