Right so remove the last else statement.

Does your subject have spaces at the beginning or end? If so you might want to try

[vba]msg.subject like "*test2*" [/vba] or
[vba]trim(msg.subject) = "test2"[/vba]