Ensure correct load error is caught in ci specs