Finish making APITest mock tests.

Removed dependencies on other tests so each test can run completely
individually.

It's unclear at the moment whether each test is useful. This needs
re-evaluated and modified if necessary.