added unit test for car