fix testcase on jenkins: NPE