add tests for encodeOnly and decodeOnly
Merge pull request #23 from searler/encodeOnly_tests

add tests for encodeOnly and decodeOnly