Added troubleshooting code for problematic test case