Added tests for subclassing relation methods.