fix and update test framework and case