Change the test code to only check for 4 significant figures.

This fixes a large number of the tests which were disabled for "floating point" errors in firefox.