Check for undefined functions
tests: check for valid file descriptor

Suppress file descriptor logging.
tests: restructure to use a generator