add test for data agent