add validation sample/test code