When there's a RESULT_MSG or a TEST to expand, I'd be happier if they were inside double-quotes.
The parentheses in some RESULT_MSG variants look too much like a sub-shell invocation to me ...