fix error return and handling in RetrieveIcon
removed unused lib
redid how the retrieveIconFile test works