Fix test on template obj test