[tests] call optimize to fix lacking freelist