Implementing tests for validation rules