better JSON fetching in brndywine. adding more tests.