added support for async command line
exception test
Check for correct exception
fixed test
Merge pull request #485 from Alxandr/feature-async-cmd

Added support for async command line