definitions-display: handling multiple words correctly, adding client tests