Fix tests

Fixed most of the tests after introduction of mag error and recent MPC changes.

Added include_comments flag to MPCWriter.

There are still 4 test cases left to update (i.e. they are failing) related to MPC comment generation.