Entity errors are cleared before the Model::validation() filter function to prevent validation (and consequent write data) with a not empty errors array.
Removed &$self from the filter since it was not used.
ixed tests.