Add some test for validator