unit tests for DataService