Comparator test.

Closes #22.