refactoring TestBase