[test] Fix a test failure, this test is only applicable in debug mode