added a test to make sure the setters worked for both electric car and
gas car