Small tests refactoring.