Added test before refactoring of AbstractTemplate. refs #459