Fixed bug in some of the degree methods that called the wrong networkx methods.
Added unit tests for the degree methods.