Fix input generation in unit test