added two test cases.