Add test decode (simple 1-file test)

In the future perhaps someone will make an IO test that uses ssh-keygen
and temporary new keys.
Merge pull request #8 from TomMD/master

Tests