Fix sparse warning

Sparse style checker complains when 0 is used where NULL should be.
Make local test functions static

Callbacks only used in test code.
Merge pull request #191 from shemminger/master

Minor sparse related fixes