added more test cases.