Fix autoload unit tests