update tests for json API change