auto test: protect from NPE