The nice thing about the "just pass the tests" approach is you end up with something sufficiently abstracted that it's easy to write tests for it.