added model unit tests