Fix test cases in debug build.