added test suite for algebra.py (through pep8)