added test for error raised calling template method from abstract superclass