Add some tests.

Redundant `self` detected.