implement test_set_membership in image service api v1