updated unit tests. added destroy method.