fix prototype typo
tests for destroy
Merge pull request #26 from mafintosh/destroy-fix-and-test

Destroy fix and test