add JSONDumper and YAMLDumper unit tests