Tested function 'find_closest'