Hi

Code:
on 1:TEXT:*Test*:#TestRoom: {
  if ( Test1 isin $1-) { 
    msg $chan Answer 1
  }
  ElseIf ( Test2 isin $1-) {
    msg $chan Answer 2
  }
  Else {
    msg $chan Message : $1-
  }
}


This one must work on you.
The code that you had have work on me. Is it very strange that is not working on you.
Try to organize your code using the brackets.
It is not in this case but when working with big codes the brakets are very good, to check any miss spelling or any error.