fix NULL
minor_edit
Merge pull request #134 from udp3f/master

fix for NULL error in unit tests