[Darwin][Driver] Add unit tests.