Expanded border test to include all 18 combinations.