smtp layer: fix unittests

Synchronize test 14 with the new application layer API and improve
debug messages.