Fix regression tests, find a bug (1-octet integer failed to handle signed).