new snapshot version, added test using in-memory HSQLDB, small fixes