fixed failing test scripts.

python scripts/sym.py
python scripts/units.py
python scripts/testsp.py