test db2 is null fix