add missing integration tests for the api controller