new link tests and fixed storin and loading to avoid infinite recursions with links