add livedata test and fixed xpm test method