@{[MYTEST]} leaves out the all-important "quotemeta". In the OP's example, the literal text to match against was ".txt", and without quotemeta, '.' will match anything, instead of dot.
Dave
"If I had my life to live over again, I'd be a plumber." -- Albert Einstein