Inconsistent fields in beforeUpdate

The test is quite simple e.g. undefined means that attribute was not pussed, null or anything else means it passed