Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]
auto merge of #6327 : z0w0/rust/rm-notest, r=brson

Makes it more consistent, imo.