Fix for #427: Preconditions checking for http delete.

And also refactored the DELETE tests a bit.