Added test for Console\Application
Added tests for PublishCommand (fixes #1)