Add API + tests for Swarm

not needed