Yes... sounds like the head gasket's gone! Sorry but it's expensive to correct.
During the mot test the engine has to be excessively revved and if the head gaskets not been changed when it should have been then it can go badly wrong in the test. I had a Megane once and when the test centre...