tests for destroy working