Ensure quads added with addN have contexts that are a graph instance. tests and fixes #299