refactored another test