Add test case for ahead_behind method

* tests/graph.R: Add file with test case

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>