add function to CollectionUtil
modernize unit test style
refactor the loading of resources