Unit tests for APIRelationship