fixed numeric_limits in fvar with tests