Added test for new 'required' feature.