Fix testing scope failures when not testing