#6 Added cucumber test for delete endpoint and removed probably-unnecessary flushBuffer() call.