refactor MiniHasTestCase