Fix Python 3 test for boolean return values test