Re #7945. Modifying unit tests for double compares.