Fix test on wrong http method