added test for required validtor