add test for spm search