Adding tests for StoreUtil
Includes refactoring of the StoreBuildMessages method