smtp layer: fix unittests

Synchronize test 14 with the new application layer API and improve
debug messages.
Merge pull request #5 from regit/dev-oisf-2.1dev-smtp-unittests

smtp layer: fix unittests