Nice work. If you have a P0700 code the module needs to be replaced which can make the solenoid code, go away, but if the solenoid is shorted it can cause the module to think it is bad. I would try the solenoid first because that is most common. Undo the wiring and use a voltmeter to see if there is no resistance or open circuit which means it is bad. Here is a guide to help you with the test:
https://www.2carpros.com/articles/how-to-use-a-voltmeter
Check out the diagrams (below). Please let us know what you find.
Image (Click to make bigger)
Wednesday, June 8th, 2022 AT 12:21 PM