added memory test for destroy/rebuilt