Update TODOs
Check for leaked file descriptors

in either the test function or a fixture, and mark the test failed if a
leak is detected.  Also add unit test and example.