fixed cleanup in glm2 test.