tests and fixes for asset reference command