fixed JSON usage and made assertions actual, expected
automated reformatting