fixed a lifetime problem in tests; updated .travis.yml for automatic documentation generation.