Add unit test for inverse_spd.
Documentation for inverse_spd