add bin/spm-build
add testcase for empty idleading