Added test for set_required option