http://www.tests-tests.com/keirsey.php?qnum=1
This test, although accurate, is quite tedious, as it requires answering 70 questions. I would recommend this one:
http://www.socionika.info/test.html
However, it's best not to answer randomly, but rather choose which of the two columns in the same color you find more appealing.
