test for panic on overflow and div by zero