if above doesnt work try

msg $chan %test. [ $+ [ $nick ] ]