Fix unit test for snapshots view