Updated tests for collections that read and write their mallocators.