Write tests for currently working data validation.
Add some more failing tests.
Make tests pass.
Merge pull request #108 from Scaffold/issue-108

Fix data validation when updating / saving.