This should be in its own file in graph/algorithms/. See https://github.com/amplab/graphx/blob/master/graph/src/test/scala/org/apache/spark/graph/algorithms/ConnectedComponentsSuite.scala for an example.