add test.json and test function