Changed ViewModel and Logger and Added ViewModel Test with Logger