adds test for encoding a single json object
breaks out some fixture components