Reference import test

In the previous versions import by reference was broken. Started to fix this but after adding the test found out it already was fixed. But since you can never have enough tests, here it is.