fix warning in null unit test