add simple Protocol test, decoding from JSON
add simple Reader tests, pure functions only