Some defensive coding around possibly invalid observables.
Add a .travis.yml to do tests.