Fixed a bug in nn_div and wrote tests for zz_div.