Added unit tests, fixed findClosestMatchingGesture() to return a tuple of tuples