added relevant test cases.