finished unit tests for DataModel