Fix __nonzero__ operator (Py2) implemented instead of __bool__ operator (Py3), due which some tests can behave unexpectedly.