change bias in encoding of M to -1 and update test vectors