Add regression test for expression performance (closes #192)