Updated parity_test