Add test for non-query-stage POST middleware