rework adapter and serializer
add basic test suite and remove old test suite