Tests for loging.