changing assertions to use phpunit's now-existing function assertJson()