Destroy fix and test

There is an embarrassing typo in my previous PR that added destroy that I just realized I forgot to fix when sending the PR.

This fixes this. I've added some basic tests for destroy as well to make it doesn't happen again