Remove double allocate from memory mapping tests