malloc tests for arenas and threads