Add unit test for asset smarty function.