Fix divided by zero printing tests.

Also, the test will run n times.