add destroyLocal function to collection
code-style
bugfix +-1
update test