Splitting up these tests to aid debugging.
Adjusting precision for Math.log10 so it passes in Firefox 4.