Expression graph tests

Opening this PR just to be able to look at "official" code coverage. I'll be adding a few more tests to this over the rest of the week.