added tests for the main view model