Fix warnings

Fixes a bunch of deprecation warnings that happen when running the tests.  Also removes what appears to be an unused method in `APIHelper`.