sophia-snapshot: fixes and test