Update leap_test.py

This solve the bug that passes None
type results as False.