Created by: marcofugaro
The fix done in #3847 is outdated, since thread-loader updated his error message, so now this happens:
I updated the test so now it's more general.