Finished trivial test. Added locks. Implemented "commit key" semantics