TST: Add layout tests for boxplot
Added `layout` test cases related to #7035, changing `_check_axes_shape` logic to meet with #7096.

@TomAugspurger pls have a look
marking for 0.14.1 unless urgent; lmk what u think
 @TomAugspurger ?
 Fine by me. Thanks @sinhrks.
