Added failing self-referencing tests
Fixed reference ids after group saving is used. Closes #98
Self-referencing working in some cases
Updated test that was reliant on exception name. Closes #99