Refactoring test classes parents.