tidy up / centralise tests
simplify graph inheritance