2755 fix tests

OK, I have fixed a huge batch of tests.   A section of them I couldn't figure out how the code has changed or if they were still relevant at all so used pytest.mark.xfail() "Expected failure".   These tests should be fixed or deleted if they are no longer relevant.

I am going to insist from now on that when merges are made to the master branch that these tests ALL PASS.
Even if this means delaying releases.
They don't pass vs. the PERF database so they will need to be modified so that they pass under both databases.