added method to test if element is located on boundary