Adds tests for memberships. [#79024588]