db snapshot and fixing test_links