Fixes issue #26: A new record is not saved if it is not dirty.
Added more tests for code coverage.