Move api tests into unit testing.

They may not be mocked to death but they are still units of
functionality and not end to end functional tests.  Thus, putting them
all in one spot.