finalized test_add and test_add_value in the test_spectrum.py