added encoding test scripts