security: Adding test cases for validator

Change-Id: If89b0cafef7d03a3604073f2f2c05e3ea4edb600