add tests from json format middleware