Added test for stored args and references.