fix NPE during test run