refactorings of tests