more efficient UnitTest script