Test fixing

I fixed some minor things from util-tests.lua file. Now these tests should work properly.