Finished The three test cases.