tests-src: add test_serialization

Signed-off-by: Victor Shcherbinin <victorshch@gmail.com>