implement Graph->getResource; add further tests