oap: add encode/decode unit test

Change-Id: I0e14099e2fc18e333a73d38bda059d53a8ca9944
5 files changed