Full test coverage for Api and ApiThread

3 jobs for api-tests in 1 minute and 48 seconds (queued for 2 seconds)