add unit test for data collector