added JUnit tests for corner adjacency