[enh] instanciate test class from config