Add debug output for failing tests