fix some test case bugs.