Add unit tests for destroy()