add support for delete methods and corresponding unit test