Fixed API controller not recognizing requests from tests