Remove toShort method
Add unit test for invalid offset argument
Add unit tests for rationals