adding unit test for deleting via model api