Improve splitting console argument & add test case