Move var assignment
Replace missing test command.

Removed option for unnamed params, as it doesn't work with the 'casperjs test' command.  It does work with the plain 'casperjs' command.  Here's three commands that work (including slightly confusing folder name):

casperjs test test/casperjs/frontend.js --direct --port=7002
casperjs      test/casperjs/frontend.js --direct --port=7002
casperjs      test/casperjs/frontend.js --direct --port=7002 foo bar

And one command that doesn't:

casperjs test test/casperjs/frontend.js --direct --port=7002 foo bar

As named params are the more likely usage, I've removed the option for unnamed commands.