corrected test and implementation of division