move keytrans test to a separate test script, and move functions common to all test...