Add check that needed for test snapshot exists

Change-Id: I5da344bfc9fdacd3dd9049aac5e8a5d98be542b8
Closes-Bug: #1346947
Merge "Add check that needed for test snapshot exists" into stable/5.0