Test for psd