nested templates test fixed