upgrade for spm3.x
rm Makefile
fix tests