Convert ApiController unit tests to TestableApiController style

Fixes #1237