Test the function of leap motion