Tests that console logging dumps proper messages.