add encode and copy test project