Use networkx.testing functions for comparing nodes and edges.

Partially adresses #975.
Merge pull request #1085 from jtorrents/fix-bp-tests

Use networkx.testing functions for testing bipartite projections