--- a/inst/awgn.m
+++ b/inst/awgn.m
@@ -135,10 +135,12 @@
 %!       noisy = awgn (y, 20, "dB", "measured");
 
 ## Test of noisy is pretty arbitrary, but should pickup most errors
-%!error awgn ();
-%!error awgn (1);
-%!error awgn (1,1,1,1,1);
 %!assert (isreal(noisy));
 %!assert (iscomplex(awgn(y+1i,20,"dB","measured")));
 %!assert (size(y) == size(noisy))
 %!assert (abs(10*log10(mean(y.^2)/mean((y-noisy).^ 2)) - 20) < 1);
+
+%% Test input validation
+%!error awgn ();
+%!error awgn (1);
+%!error awgn (1,1,1,1,1);