Replace Object.new with double in tests