adding apropriate error message for metasubstitution tests