Add a script for reproducing the 'missing memberships' bug