[cleanup] Make this test use a proper fixture rather than globals.