Added test case for custom relationships.