Persistence not updated any more for empty schemas

- Added tests for commit() and _set()