Fix use wrong enum value of assets location
Update testcase for asset plugin