The engine number is not checked as part of the MOT test, just the VIN number.
But easy to keep things above board. Build you car, pass the SVA, register the car. Once you have the V5 simply change the engine & notify DVLA of the new engine number.
Engine changes are quite common, they won't want to know the reason why.