unit test fot MembershipAdapter removed ,added and attributeChanged

This test is more than 30 lines long. This is too much. Good test is max 10/20 lines.