add some jsonapi tests

these tests are based on the existing json formatter and exception tests.
I didn't see any existing parser tests.