Added tests for "required" attribute