This is partly a test: does the person being insulted care enough about you and your suffering to dig past a few obstacles and unearth the bitter truth? It is also partly, and more obviously, defensive: if you can chase someone away from something you yourself do not want to discover, that makes your life easier in the present.