Document required self=this coding pattern.

Also fixed formatting of test method.