warn when appname is null
Add test for warning when appname is null

* one test should be enough for this behaviour
(not sure I understand the whitespace formatting in this block)