Added some assertions to Asset.