added methods for unit testing
unit test
edited comments
added test for destroy()