improved util tests