fixed a problem in injectScript command, another one in the runner and some slight refactoring
updated the test for the cli runner