tests: add test for read-prefs scoring.

Scoring the read preferences is done so that we can choose which
nodes match a read preference and then sort them.