Fixed Controller IOC tests

* added/fixed so that Controller-related tests also support API
controllers