[#577] Add a test for decoding negative integers