replaced deprecated @Data annotation
test validations