implemented updateSnapshot method
Test is rudimentary working but without any thorough checks