tidy up test listener, tidy up unit tests, more documentation updates
add unit test for running a script via the cli startup arg