tests for match_binary_descriptors; many corrections and changes