Fix build warnings.
Add stubbed command line to test code to keep tests working.
Test other exit medhods.