Added test for cli 'undefined'
Update debug-phantomjs example and docs