implementing and testing valueset validator