Organized the code for readability, by adding the addTestCode
function. Now getTestCommand.js is easier to read and focuses
on logic versus function.

ToDo:

1. Add functionality for 'off' selector. It should remove the test
   code (if it exists), otherwise, it does nothing