apply another recommendation for the patch: try/except around (float)
add some comments to the tests