Cleaned up enum and weightedgraph unit tests