added test and util class