New test, fix bug with references.