Added test for DELETE and fixed issue with delete method