Adding tests to graphs