Use new autoloader class in tests

Refs #3308 and #3290 where CI fails because of this

/cc @LukasReschke @icewind1991 @DeepDiver1975