Yes this is how you use it, you don't have to use the on text event on *test* at the end, you can delete that.
You type "/addbadword test test" in any mIRC editbox, that will call the alias, this alias is just an easy way for you to add badwords.
For example, you would also type "/addbadword bannedword bannedword" etc


#mircscripting @ irc.swiftirc.net == the best mIRC help channel