Viewmodel tests