finish and test the data model