add unit tests for MainViewModel.cs