writing graph tests