fix test_head_method from false-positive