tests for data model