code test and util