fix spm test