Interesting article about unit testing as it relates to API development:
http://blog.seatsync.com/2012/06/unit-testing-as-path-of-lea...Unit tests of lower level back-end functionality is always a good idea, but I find it actually makes API development simpler because it frees you from the problems and complications inherent in testing via your target client.
Disclosure: I wrote the article.