[#28]Added tests for validations.