Merge pull request #1 from alanhoff/master

merge
some tests
Merge pull request #2 from marcosbergamo/master

Tests for the encoders/decoders