Add test to verify each expression is evaluated exactly once.