more elegant version of updateCar
repaired updateCar method test