The test you seem to be talking about is often referred to by different names, but the name used by The Myers & Briggs Foundation and most of the papers on the subject is MBTI (Myers-Briggs Type Indicator).
I did my best to identify it according to your description, but leave a comment if I'm wrong.
It is important to add that this test is ...
Taking joy in irritating others is unlikely to be classifiable as a personality disorder, however, the Dark Triad describes individuals with disagreeable habits. In combination with other extremely adverse behaviours, it is perhaps classifiable as Conduct disorder or Narcissistic personality disorder.