Make sure all logging goes through the 'testinstances' handler.