Add some more tests for signed integer reading/writing and update the conversion to work.