Check that signs of numerator/denominator are correctly handled.