Add TexturePackerEncryptionTest for other platforms

And fix an error on windows.