Fixed for ignore callback is not function.
Add spm_modules to gitignore
Add test cases