Added tests for RelationBuilder