Tutorial for using testApi

Is there a tutorial for writing tests using testApi?