adding api.getFieldList
adding test for api.getFieldList