Add a tolerance accounting for machine precision.

Also rename test file for consistency with past commits.