Add rational arithmetic test case.
Fix division by signed values.