Adds unit tests for isModified