Fix test redundancy.
Fix comment mistake.
Add tests for distance queries.