Fix logging test