Added tests for Binary and Json MessageEncoderFactories.