added test for destroy method