Thats more or less what my test will verify the engine will only run if there is power at the brown terminal. If you pull the wire off and it keeps running then power is coming from somewhere else in the system. If the engine dies when you unhook it then the sloenoid is the problem as its powering the brown wire even when supposedly shut down.
We pretty much know that your coil has power with the key off as your engine wont shut off. There is nothing else that will cause the engine to keep running. So that test is uneeded. You just have to find out why it has power with the key off. Either a bad starter solenoid, bad igintion switch or something in the wiring is bad. If this just started happening Id bet on the solenoid or your $6 switch. Witch did you replace the entire switch or just the lock cylinder? as the entire swtich usually cost more than $6 lock cylinders are usually $6