It could be a 50cc with a 500cc engine in and it'll pass Aslong as its safe for the roads and meets standards
i'v never had my engine numbers checked, they always check the frame number matches the loggy, thats it. half the time i'v had a different engine in the anyway and have never failed an mot