use NULL instead of 0 in testcases.