Added the ability to remove test code from the scripts:

Before it would add the code if the command was set to "On". When
set to "Off", it will remove the test code. This works in the
simplest case of a script with only a test command. As I use it,
I will make updates to ensure other, more complex, scenarios work
as well.

ToDo:

1. Test with actual code