Added basic integration tests for api controller.