Fixed test_algebra.py