added test case for generic relation