Refactor ApiClient tests

This commit refactors the test for the ApiClient to be in multiple
test classes. This will make it easier to find examples of usage
for specific parts of the client as well as make it easier
to maintain.