Add resource for SPM, add tests for resource/util