fix bug of app data consumer and test case