add first histfactory test and generate required dictionaries