finish the test framework