Adding an rspec test for graphs