Implement tests for editing memberships