failing test for hasDataChanged
fix model behaviour and more tests
Merge pull request #431 from chestozo/fix-model-hasdatachanged

Fix model hasdatachanged