Add test for nD `exclude_border` option