Add tests for best_match().