Fixed typo and added test for process_command_line