SPM unit test.