fix test after refactoring