Improve assetDataUri error reporting
Fix tests