Fixed some assertions that were not wrong, but quite missleading.
Removed a warning that was displayed for HEAD requests.