Merge "libsnapshot: add library for test helpers"