Add test for validator