Tests, coverage for modelRepository