Add encoding and fallback coverage to json codec (LOGSTASH-1595)
Fix json encoding and callback tests (LOGSTASH-1595)