Added API unit tests.