model unit tests