[feature] fix the unit test for --enable-debug=yes