fixed bug in unittest

fixed bug in factorgraph unit-test (template was missing)