Add casts for gfortran
Set sf to a constant
Equality check
Expanding tests