Added test_enc to unit tests.
Merge pull request #30 from Hudon/test_enc

Added test_enc to unit tests.