CMS-737: Introduce RPC API on top of RelationshipType API

added required unit tests