Renamed end variable in tests