Neater implementation of collection clearing between tests