resolve NULL definition problem
prepared for parameterized test of lib.c