Fix the data integrity bug in test_misc.