Added test for Reference to JSON