test_fmt_str() implemented, added helper functions to marshal.c