Fix tests for HEAD requests