Add further tests to Graph spec for ordering and linking.