Tests for matching the right http method.