Add API + tests for Swarm

unused import