improve test code for arb_div and make nan -> nan when dividing
include a version number