experimenting with alternate test structure for graphs lib

Since testing graph implementations under test will all likely be
conforming to some signature, using a functor for the tests themselves
is pretty natural.