Tests for boundary functions

Fixed get_boundary to not only return isolated wire-vertices.  Also,
restricted definition of input and output to just directed forms (if we
want a more liberal definition, wire-verts connected to a single
undirected edge should be included in both).