Make tests work with slice allocator