corrected unit test to only expect defintion
bugs with templates
unit test works now. But the scenario before might need some more inspection.