refactor sender data test case