diff --git a/presto-main/src/test/java/com/facebook/presto/cost/TestScalarStatsCalculator.java b/presto-main/src/test/java/com/facebook/presto/cost/TestScalarStatsCalculator.java
index <HASH>..<HASH> 100644
--- a/presto-main/src/test/java/com/facebook/presto/cost/TestScalarStatsCalculator.java
+++ b/presto-main/src/test/java/com/facebook/presto/cost/TestScalarStatsCalculator.java
@@ -75,6 +75,24 @@ public class TestScalarStatsCalculator
     }
 
     @Test
+    public void testSymbolReference()
+    {
+        SymbolStatsEstimate xStats = SymbolStatsEstimate.builder()
+                .setLowValue(-1)
+                .setHighValue(10)
+                .setDistinctValuesCount(4)
+                .setNullsFraction(0.1)
+                .setAverageRowSize(2.0)
+                .build();
+        PlanNodeStatsEstimate inputStatistics = PlanNodeStatsEstimate.builder()
+                .addSymbolStatistics(new Symbol("x"), xStats)
+                .build();
+
+        assertCalculate(expression("x"), inputStatistics).isEqualTo(xStats);
+        assertCalculate(expression("y"), inputStatistics).isEqualTo(SymbolStatsEstimate.UNKNOWN_STATS);
+    }
+
+    @Test
     public void testCastDoubleToBigint()
     {
         PlanNodeStatsEstimate inputStatistics = PlanNodeStatsEstimate.builder()
Add test for symbol reference stats calculation