Fixed test config, added detect base class.