[server][test] use positive condition for getNullFlag