Add some unit tests on ModelServiceImpl.