Replaced def to let in tests