pass graph instance as parameter to tests

previously, tests would create their own graph instances from given parameters