unit test viewmodel is passed to view correctly