Fixed api, added testdata json file