tests for validator added