Add validation for name in garden model with test.