Build: Fix testswarm task, use API correctly