Added tests for checking isModified/isValid states