scaffold tests, add Graph.isGraph function and related test