Primitive test code for operations over sets