ENH: Reducing test memory consumption