testing title logic