Completing generator close/cleanup tests.

Two tests, one being an explicit call to close(). The other one being implicit through Python's garbage collector.
Both tests are validating in the same way.

Also, fixed a assertion in the explicit close() test that was always good.