Added tests for PDU Encoder.