example test for n-bit parity