move convertQueryToKana to helpers file, add test