libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no pub mod or pub fn).
librustdoc: move tests into dedicated tests module.