test for division by zero