Fixed pass-by-ref fail in unit test.