removing IFDEFs and making graph_tests a function not a lambda