Added divide by 0 test and functionality