Added test_enc.py

Do a make test on branch test-enc.  All tests pass.