Optimized object manager handling in UnitTest/Helper.pm.