Updated unit tests to include the new RepositoryNotFoundException.