Fix conversion between degrees to meters
Fix bad degrees to meters conversion and add extra test

Fixes an error that messed up the distance calculation.  Also fixes
the unit test that failed to catch the error.