Updated Test with try-catch for Repo Exception