new test from random testing that uncovered ratio bug
corrected sign and size handling for rationals