Add tests for core.compile_graph
Lazy evaluation for new-style graphs