Fix old rest tests to work with POST data