Merge "Add tests to cover handling negative varint." into pi-dev