adding error level handling to the base Test class