base class for tests