Close log file in child process

This helps fix error detected by Valgrind.
Mark test data attribute as unused

It produced a warning in tests that contained no assertions.