Convert api to controller

Auth test case was using the member for a controller
but had called it API, which was confusing

Change-Id: Ic3d233208149277e4647010c0a8567814bdadc44