Modified altitudeWidget tests to check for empty string and infinite numbers as well as enhance readability.