test creating model