Added some debug output to the tests, allowing a little more detailed failure analysis.