add validator test for model