refactoring inheritance for many tests