unit: testing UnitStateGenerator