Updated testbench ecc encoding function to match the parity_check_matrix used in ECC generator.