finished some test cases