1. Fix function sequences in kyototycoon.lua
2. Add a test case for "match_prefix" command