Much of the testing is due to refining designs to make them more efficient, smaller, and lighter. If the Ukraine decided to build a bomb that wasn't state of the art they could be reasonably assured that it would work, but substantially less clear on final yield.
Yield only really matters in theory and for planning MAD. Tank divisions are equally destroyed with a 100 kiloton device as a 10 megaton device.