fix test decision pool file writing part 1 of 2