i believe you got the same result i Did.
on you first run you passed the parameter "test" on the cli, i assume.
within the test subroutine, it printed "test,1", as identified on your very first line of output. i would not want or be expecting "test,1" since i specifically did not pass the parameter test or 1 to the subroutine test