fixed bug in snapshot existence test.
Merge branch 'test' into dev