Fixed the test for item deallocation.