Take it back to the guy that did the work! That's his job.
Otherwise get it to the tune up department of a dealer.
If the engine isn't exactly like the original, don't expect success. They change all sorts of things from model to model, even routing. It's difficult to get the proper wireing from the factory even with all the codes.