Move package exit. Start to handle tests for commands.