Improved test for utils