Fixed required field and without name attribute, Add test cases