Add templateObjects spec tests