fixes for the tests of client libraries

also added missing aesEncrypt function to php5.3