Revert "Replace compareNumbers() with equals() and improve numerical tolerance handling in test helpers."

This reverts commit 318209e9e9255ac115abab45f35f6c53f987064a.