Solenoid test script written by Mason