Check y

By using the get_debug_values() function and with flag "theano.config.compute_test_value" turned on, we can now check the value of Y before computing kl or elemwise_kl. Note that this feature should only be expected to work in test time, not for passed values in a real function call.

Should we check every mode of "theano.config.compute_test_value" in the unit test? Or, since it is only a unit test for kl (or elemwise_kl), just testing it on one of the mode will be OK?
If Y = [0.1, 0.9], I think this evaluates to false, since there is a "not" before the parenthesis. We can also figure it out from the three function call in the test_kl() method, in which Y=[random set in the interval [0, 1) ], Y=[0, 0, ..., 1.1, 0, 0, ...] and Y=[0, 0, ..., -0.1, 0, 0, ...].