added destroy() method. updated unit tests.