refs #1673 automatically attach "Test" to testname if needed, added optional option to define type of test