Test for edge int2binf cases

Better testing for NULL parameters
and results. Add wrapping structure
to facilitate testing of different
functions.