Fix a unit test issue caused by the coverity changes.