Test intercepted logged messages.