Fixing tests

Redundant `self` detected.