Boeing have been using a simulator (at least one) and also have done over 200 flights and more than 360 hours on those flights to test MCAS.
If you have the simulator and you are doing a software fix, that is a lot of flying to confirm the fix.
B787 certification took 1,700 flights and almost 5,000 hours for a complete new type, not a sub system that was already certified.