add tests to opam file
add @encoder and @decoder attributes