MDL-41570 fixes match qtype's prepare_simulated_post_data

And converts more unit tests to use the method