update init package.spm.tests
fix a test case