Fix autoload issues in unit tests