Use newer clearer Rails.env for detecting test environment.