added testmet function: fixes redmine #2028