Improved unit testing for root value generation