Updated api unit tests.