Would you please get extended error information through calling GetLastError? This error message is helpful analyzing.
Generally, FindResource fails if the resource doesn’t exist in the module. Thus, you can open “Test.exe” with Visual Studio. Open it as file and its resources will be automatically displayed. And then check whether an icon resource with ID 107 exists in it.