added makeStr; correct tests

Added the makeStr function which takes a header and a body and returns a "json-header" formatted document. Additionally, I corrrect a problem with the tests that did not account for a recent change in behavior of parseStr that returns a "null" when the header is invalid, rather than {}.