Add tests for person/org memberships

Make sure that memberships are populated correctly when they are
returned from the API.