add one more test case to test 3. Passed test 3 for getSnapshot().