WIP: Add additional unit tests

- Remove dependence on networkx for graph_degree test.
- Add test to check list input for ntraj in mcsolver.