Logging will always be off without this fix

The code to check if a log file should be generated is flawed. There
should be a reference to the internal _vqmod object in the test.