Fix test for destroy method