Good point. I wrote a new method in auto_tests/tests/Util.js