Remove the side-effects of validates_presence_of.
Merge pull request #16248 from zuhao/refactor_activerecord_presence_validation_test

Remove the side-effects of validates_presence_of.