Fix __nonzero__ => __bool__
Fix some tests.