Fixing and unit testing loading of type from async library load.