Adding a test for ldpc_encoder