encoding test added