Finished the test cases.