ENH: Added reference node tests, fixed reference API