[MRG] Move is_psd outside of _utils.testing

closes #260.