Added test for validation with allowNull:true; closes #1276
Merge pull request #1342 from shopbeam/test/add-validation-allownull-true

Added test for validation with allowNull:true; closes #1276