Updated unit tests. Added destroy() method.