Adding some debug logging to diagnose test failure