tests for Model