refactorin tests