added unit test for encoding from jheckings pull request