Move `extern crate test` to #[cfg(test)]