[tests] add tests for ha serializer