Test-driven development with Swift