GrafTemplate addLink test

found and fixed bug so yaay