Add API + tests for Swarm

just an `else`?