added some tests for advanced validation rules and green code