Flag expressions not assgned (W0106).

* Replace some invocations of sure with unittest methods.