make post and put tests fail if method is not post or put, respectively