Implement test allocator.