Implements helper to split command from arguments
Also tests the helper function (ofc...)