added test cases.