Verify decoded data in tests. Fixes #3