Fixed broken test by wrapping modules round the tests, and properly mocking graph_model in the index route app class