Add travis configuration
Fix test_advanced_search_fields test.  Fixes #1416
Fix unit test

This unit test failed when running the OTM2 without companion repos
Fix failing unit test.

This test consistently gives a *slightly* different result on Travis CI.
I don't think it's worth worrying about, so long as we have consistent
behaviour on the same machine.
Skip tests that inexplicably fail on Travis