add unit tests for the datasrc lib