added simple test for snr function