Base classes and main test template