Added tests for memberships