Add debug output to test